package com.strange.mdl.module.mdl.dal.dataobject.debatehall;

import com.strange.mdl.module.mdl.dal.dataobject.debatehallcomment.DebatehallCommentDO;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.strange.mdl.framework.mybatis.core.dataobject.BaseDO;

/**
 * 辨经殿话题 DO
 *
 * @author 密谛灵总控
 */
@TableName("mdl_debatehall")
@KeySequence("mdl_debatehall_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DebatehallDO extends BaseDO {

    /**
     * 主键ID
     */
    @TableId
    private Long id;
    /**
     * 创作者ID
     */
    private Long userId;
    /**
     * 话题详细描述
     */
    private String content;
    /**
     * 正方标题
     */
    private String prosTitle;
    /**
     * 反方标题
     */
    private String consTitle;



    /**
     * 点赞数
     */
    @TableField(exist = false)
    private Integer likes;

    /**
     * 收藏数
     */
    @TableField(exist = false)
    private Integer collects;

    /**
     * 分享数
     */
    @TableField(exist = false)
    private Integer shares;

    /**
     * 评论数
     */
    @TableField(exist = false)
    private Integer messages;
    @TableField(exist = false)
    private Integer prosUserNum;
    @TableField(exist = false)
    private Integer consUserNum;
    @TableField(exist = false)
    private Integer prosRatio;
    @TableField(exist = false)
    private Integer consRatio;

    @TableField(exist = false)
    private Integer isLike;
    @TableField(exist = false)
    private Integer isCollect;
    @TableField(exist = false)
    private Integer isShare;
    @TableField(exist = false)
    private Integer isMessage;

    @TableField(exist = false)
    private List<DebatehallCommentDO> comments;

    private Long tenantId;

}